package com.ysd.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dapeng
 * @since 2021-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Topic对象", description="")
public class Topic extends Model<Topic> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "题目")
    private String title;

    @ApiModelProperty(value = "所属章节Id")
    private Integer chapterId;

    @ApiModelProperty(value = "所属章节名字")
    private String chapterName;

    @ApiModelProperty(value = "所属题类型")
    private Integer typeId;

    @ApiModelProperty(value = "标签")
    private String label;

    @ApiModelProperty(value = "分值")
    private Double score;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private Integer createId;

    @ApiModelProperty(value = "创建人")
    private String createName;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    private Integer updateId;

    @ApiModelProperty(value = "更新人")
    private String updateName;

    @ApiModelProperty(value = "状态 0开发中 1 正常 2停用  ")
    private Integer status;

    @ApiModelProperty(value = "答案")
    private String answerId;

    @ApiModelProperty(value = "解析")
    private String analysis;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
